<style src="./index.scss" lang="scss" scoped rel="stylesheet/scss"></style>
<template src="./index.html"></template>

<script>
import Loading from "./../Loading";
export default {
    async created() {},
    components: {
        Loading,
        LayoutWrapBoxAdmin: async () =>
            Vue.extend(
                await Vue.prototype.$vFN.Components.Base.LayoutWrapBoxAdmin()
            ),
        LayoutWrapBoxSite: async () =>
            Vue.extend(
                await Vue.prototype.$vFN.Components.Base.LayoutWrapBoxSite()
            ),
        LayoutWrapBoxStore: async () =>
            Vue.extend(
                await Vue.prototype.$vFN.Components.Base.LayoutWrapBoxStore()
            ),
    },

    async created() {},
    methods: {
        closeBaseLoadModal() {
            this.$vFN.Tools.setLoad(0);
        },
    },
    watch: {
        $route: {
            handler() {
                if (
                    this.$route.path.indexOf(
                        "/" + this.$vFN.Tools.getProjectType() + "/login"
                    ) >= 0
                ) {
                    this.isBox = true;
                } 
                else if (
                    this.$route.path.indexOf(
                        "/" + this.$vFN.Tools.getProjectType() + "/design"
                    ) >= 0
                ) {
                    this.isBox = true;
                } else {
                    this.isBox = false;
                }
            },
            deep: true,
        },
    },

    data() {
        return {
            isRouterAlive: true,
            isSystem: "",
            show: false,
            isBox: true,
        };
    },

    ////    创建前
    //    beforeCreate() { console.log("创建前beforeCreate"); },
    ////    创建后
    //    created() { console.log("created创建后"); },
    ////    载入前
    //    beforeMount() { console.log("beforeMount载入前"); },
    ////    载入后
    //    mounted() { console.log("mounted载入后"); },
    ////    更新前
    //    beforeUpdate() { console.log("beforeUpdate更新前"); },
    ////    更新后
    //    updated() { console.log("updated更新后"); },
    ////    keep-alive组件激活时调用。
    //    activated() { console.log("activated-keep-alive组件激活时调用"); },
    ////    keep-alive组件停用时调用。
    //    deactivated() { console.log("deactivated-keep-alive组件停用时调用"); },
    ////    销毁前
    //    beforeDestroy() { console.log("beforeDestroy销毁前"); },
    ////    销毁后
    //    destroyed() { console.log("destroyed销毁后"); },
};
</script>
<style lang="scss" rel="stylesheet/scss">
@import "../../styles/common.scss";
</style>